package org.ns.tomdog.servlet;

import org.ns.tomdog.server.ServerResponse;

import java.io.IOException;

public class HttpServletResponse {
    ServerResponse response;

    public HttpServletResponse(ServerResponse response) {
        this.response = response;
    }

    public void setHeader(String name, String value) {
        response.setHeader(name, value);
    }

    public void setContentType(String contentType) {
        response.setContentType(contentType);
    }
    public void serContentLength(String contentLength) {
        response.setContentType(contentLength);
    }
    public void write(byte[] bytes) {
        response.write(bytes);
    }
    public void write(byte[] bytes, int off, int len) {
        response.write(bytes, off, len);
    }
    public void flush() throws IOException {
        response.flush();
    }

}
